package org.lyimg.com.imgapplication.presenter;

import org.lyimg.com.imgapplication.view.ImainView;

import java.lang.ref.WeakReference;

/**
 * Created by liuyong on 2019/1/24.
 */

public class BasePresenter <T>{
    //mode层的引用
    WeakReference<T> weakReference;

    public void setWeakReference(T view) {
        weakReference = new WeakReference<>(view);
    }

    public void removeView() {
        weakReference.clear();
    }
}
